.. _CA Structures: ========================== CA Structures ========================== .. toctree:: :maxdepth: 1 * :ref:`CAIAction` * :ref:`CAICondition` * :ref:`CAIConditionResponse` * :ref:`CAIGroup` * :ref:`CAIId` * :ref:`CAIIdList` * :ref:`CAINonPlayerScript` * :ref:`CAIObjectType` * :ref:`CAIPlayerScript` * :ref:`CAIResponse` * :ref:`CAIResponseSet` * :ref:`CAIScript` * :ref:`CAIScriptFile` * :ref:`CAITrigger` * :ref:`CAIUtil` * :ref:`CAOEEntry` * :ref:`CAOEEntry::AOEType` * :ref:`CAbilityData` * :ref:`CAbilityId` * :ref:`CApplyEffectList` * :ref:`CAreaFile` * :ref:`CAreaFileCharacterEntryPoint` * :ref:`CAreaFileContainer` * :ref:`CAreaFileCreature` * :ref:`CAreaFileDoorObject` * :ref:`CAreaFileHeader` * :ref:`CAreaFileOffsets` * :ref:`CAreaFileProjectileObject` * :ref:`CAreaFileRandomMonsterSpawningPoint` * :ref:`CAreaFileRestEncounter` * :ref:`CAreaFileSoundObject` * :ref:`CAreaFileStaticObject` * :ref:`CAreaFileTiledObject` * :ref:`CAreaFileTriggerObject` * :ref:`CAreaPoint` * :ref:`CAreaSoundsAndMusic` * :ref:`CAreaUserNote` * :ref:`CAreaVariable` * :ref:`CArray` .. _CAIAction: CAIAction ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CAIAction Class` +------------+-----------------------+-------------------------------------+-----------------+ | **Offset** | **Size (Total: 136)** | **Type** | **Field** | +------------+-----------------------+-------------------------------------+-----------------+ | 0x0 | 2 | __int16 | m_actionID | +------------+-----------------------+-------------------------------------+-----------------+ | | 6 | | ```` | +------------+-----------------------+-------------------------------------+-----------------+ | 0x8 | 24 | :ref:`CAIObjectType` | m_actorID | +------------+-----------------------+-------------------------------------+-----------------+ | 0x20 | 24 | :ref:`CAIObjectType` | m_acteeID | +------------+-----------------------+-------------------------------------+-----------------+ | 0x38 | 24 | :ref:`CAIObjectType` | m_acteeID2 | +------------+-----------------------+-------------------------------------+-----------------+ | 0x50 | 4 | int | m_specificID | +------------+-----------------------+-------------------------------------+-----------------+ | 0x54 | 4 | int | m_specificID2 | +------------+-----------------------+-------------------------------------+-----------------+ | 0x58 | 4 | int | m_specificID3 | +------------+-----------------------+-------------------------------------+-----------------+ | | 4 | | ```` | +------------+-----------------------+-------------------------------------+-----------------+ | 0x60 | 8 | :ref:`CString` | m_string1 | +------------+-----------------------+-------------------------------------+-----------------+ | 0x68 | 8 | :ref:`CString` | m_string2 | +------------+-----------------------+-------------------------------------+-----------------+ | 0x70 | 8 | :ref:`CPoint` | m_dest | +------------+-----------------------+-------------------------------------+-----------------+ | 0x78 | 4 | unsigned int | m_internalFlags | +------------+-----------------------+-------------------------------------+-----------------+ | | 4 | | ```` | +------------+-----------------------+-------------------------------------+-----------------+ | 0x80 | 8 | :ref:`CString` | m_source | +------------+-----------------------+-------------------------------------+-----------------+ ---- .. _CAICondition: CAICondition ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CAICondition Class` +------------+----------------------+--------------------------------------------------------------------------------------------------+---------------+ | **Offset** | **Size (Total: 56)** | **Type** | **Field** | +------------+----------------------+--------------------------------------------------------------------------------------------------+---------------+ | 0x0 | 56 | :ref:`CTypedPtrList`\<:ref:`CPtrList`, :ref:`CAITrigger`\*> | m_triggerList | +------------+----------------------+--------------------------------------------------------------------------------------------------+---------------+ ---- .. _CAIConditionResponse: CAIConditionResponse ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+---------------------------------------+---------------+ | **Offset** | **Size (Total: 120)** | **Type** | **Field** | +------------+-----------------------+---------------------------------------+---------------+ | 0x0 | 56 | :ref:`CAICondition` | m_condition | +------------+-----------------------+---------------------------------------+---------------+ | 0x38 | 64 | :ref:`CAIResponseSet` | m_responseSet | +------------+-----------------------+---------------------------------------+---------------+ ---- .. _CAIGroup: CAIGroup ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CAIGroup Class` +------------+----------------------+-----------------------------------------------------------------------+----------------+ | **Offset** | **Size (Total: 64)** | **Type** | **Field** | +------------+----------------------+-----------------------------------------------------------------------+----------------+ | 0x0 | 2 | __int16 | m_groupId | +------------+----------------------+-----------------------------------------------------------------------+----------------+ | | 2 | | ```` | +------------+----------------------+-----------------------------------------------------------------------+----------------+ | 0x4 | 4 | int | m_groupChanged | +------------+----------------------+-----------------------------------------------------------------------+----------------+ | 0x8 | 56 | :ref:`CTypedPtrList`\<:ref:`CPtrList`,long*> | m_memberList | +------------+----------------------+-----------------------------------------------------------------------+----------------+ ---- .. _CAIId: CAIId ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------+---------------+ | **Offset** | **Size (Total: 24)** | **Type** | **Field** | +------------+----------------------+-------------------------+---------------+ | 0x0 | 4 | int | m_id | +------------+----------------------+-------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------+---------------+ | 0x8 | 8 | :ref:`CString` | m_line | +------------+----------------------+-------------------------+---------------+ | 0x10 | 8 | :ref:`CString` | m_start | +------------+----------------------+-------------------------+---------------+ ---- .. _CAIIdList: CAIIdList ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CAIIdList Class` +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ | **Offset** | **Size (Total: 112)** | **Type** | **Field** | +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ | 0x0 | 8 | qword | vfptr | +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ | 0x8 | 16 | :ref:`CResHelper`\<:ref:`CResText`,1008> | baseclass_0 | +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ | 0x18 | 8 | :ref:`CString` | m_fileName | +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ | 0x20 | 56 | :ref:`CTypedPtrList`\<:ref:`CPtrList`, :ref:`CAIId`\*> | m_idList | +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ | 0x58 | 4 | int | m_faster | +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ | | 4 | | ```` | +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ | 0x60 | 8 | :ref:`CAIId`\** | m_pIdArray | +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ | 0x68 | 4 | int | m_nArray | +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ | | 4 | | ```` | +------------+-----------------------+----------------------------------------------------------------------------------------+---------------+ ---- .. _CAINonPlayerScript: CAINonPlayerScript ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+----------------------------------------------------------------+-------------+ | **Offset** | **Size (Total: 16)** | **Type** | **Field** | +------------+----------------------+----------------------------------------------------------------+-------------+ | 0x0 | 16 | :ref:`CResHelper`\<:ref:`CResText`,1007> | baseclass_0 | +------------+----------------------+----------------------------------------------------------------+-------------+ ---- .. _CAIObjectType: CAIObjectType ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CAIObjectType Class` +------------+----------------------+--------------------------+---------------+ | **Offset** | **Size (Total: 24)** | **Type** | **Field** | +------------+----------------------+--------------------------+---------------+ | 0x0 | 8 | :ref:`CString` | m_name | +------------+----------------------+--------------------------+---------------+ | 0x8 | 1 | unsigned __int8 | m_EnemyAlly | +------------+----------------------+--------------------------+---------------+ | 0x9 | 1 | unsigned __int8 | m_General | +------------+----------------------+--------------------------+---------------+ | 0xA | 1 | unsigned __int8 | m_Race | +------------+----------------------+--------------------------+---------------+ | 0xB | 1 | unsigned __int8 | m_Class | +------------+----------------------+--------------------------+---------------+ | 0xC | 4 | int | m_Instance | +------------+----------------------+--------------------------+---------------+ | 0x10 | 5 | Array | m_SpecialCase | +------------+----------------------+--------------------------+---------------+ | 0x15 | 1 | unsigned __int8 | m_Specifics | +------------+----------------------+--------------------------+---------------+ | 0x16 | 1 | unsigned __int8 | m_Gender | +------------+----------------------+--------------------------+---------------+ | 0x17 | 1 | unsigned __int8 | m_Alignment | +------------+----------------------+--------------------------+---------------+ **Notes** Valid values for the following fields can be found in specific .IDS files: * **m_EnemyAlly** valid values can be found in the ``EA.IDS`` file * **m_General** valid values can be found in the ``GENERAL.IDS`` file * **m_Race** valid values can be found in the ``RACE.IDS`` file * **m_Class** valid values can be found in the ``CLASS.IDS`` file * **m_Specifics** valid values can be found in the ``SPECIFIC.IDS`` file * **m_Gender** valid values can be found in the ``GENDER.IDS`` file * **m_Alignment** valid values can be found in the ``ALIGN.IDS`` file ---- .. _CAIPlayerScript: CAIPlayerScript ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+----------------------------------------------------------------+-------------+ | **Offset** | **Size (Total: 16)** | **Type** | **Field** | +------------+----------------------+----------------------------------------------------------------+-------------+ | 0x0 | 16 | :ref:`CResHelper`\<:ref:`CResText`,1017> | baseclass_0 | +------------+----------------------+----------------------------------------------------------------+-------------+ ---- .. _CAIResponse: CAIResponse ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CAIResponse Class` +------------+----------------------+------------------------------------------------------------------------------------------------+------------------+ | **Offset** | **Size (Total: 64)** | **Type** | **Field** | +------------+----------------------+------------------------------------------------------------------------------------------------+------------------+ | 0x0 | 2 | __int16 | m_weight | +------------+----------------------+------------------------------------------------------------------------------------------------+------------------+ | 0x2 | 2 | __int16 | m_responseNum | +------------+----------------------+------------------------------------------------------------------------------------------------+------------------+ | 0x4 | 2 | __int16 | m_responseSetNum | +------------+----------------------+------------------------------------------------------------------------------------------------+------------------+ | 0x6 | 2 | __int16 | m_scriptNum | +------------+----------------------+------------------------------------------------------------------------------------------------+------------------+ | 0x8 | 56 | :ref:`CTypedPtrList`\<:ref:`CPtrList`, :ref:`CAIAction`\*> | m_actionList | +------------+----------------------+------------------------------------------------------------------------------------------------+------------------+ ---- .. _CAIResponseSet: CAIResponseSet ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+----------------------------------------------------------------------------------------------------+----------------+ | **Offset** | **Size (Total: 64)** | **Type** | **Field** | +------------+----------------------+----------------------------------------------------------------------------------------------------+----------------+ | 0x0 | 56 | :ref:`CTypedPtrList`\<:ref:`CPtrList`, :ref:`CAIResponse`\*> | m_responseList | +------------+----------------------+----------------------------------------------------------------------------------------------------+----------------+ | 0x38 | 4 | int | m_weightTotal | +------------+----------------------+----------------------------------------------------------------------------------------------------+----------------+ | | 4 | | ```` | +------------+----------------------+----------------------------------------------------------------------------------------------------+----------------+ ---- .. _CAIScript: CAIScript ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CAIScript Class` +------------+----------------------+----------------------------------------------------------------------------------------------------------------------+-----------+ | **Offset** | **Size (Total: 64)** | **Type** | **Field** | +------------+----------------------+----------------------------------------------------------------------------------------------------------------------+-----------+ | 0x0 | 8 | :ref:`CResRef` | cResRef | +------------+----------------------+----------------------------------------------------------------------------------------------------------------------+-----------+ | 0x8 | 56 | :ref:`CTypedPtrList`\<:ref:`CPtrList`, :ref:`CAIConditionResponse`\*> | m_caList | +------------+----------------------+----------------------------------------------------------------------------------------------------------------------+-----------+ ---- .. _CAIScriptFile: CAIScriptFile ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CAIScriptFile Class` +------------+-----------------------+-----------------------------------------+------------------+ | **Offset** | **Size (Total: 424)** | **Type** | **Field** | +------------+-----------------------+-----------------------------------------+------------------+ | 0x0 | 2 | __int16 | m_parseMode | +------------+-----------------------+-----------------------------------------+------------------+ | | 2 | | ```` | +------------+-----------------------+-----------------------------------------+------------------+ | 0x4 | 4 | int | m_lineNumber | +------------+-----------------------+-----------------------------------------+------------------+ | 0x8 | 8 | :ref:`CAIScript`\* | m_curScript | +------------+-----------------------+-----------------------------------------+------------------+ | 0x10 | 8 | :ref:`CAIResponseSet`\* | m_curResponseSet | +------------+-----------------------+-----------------------------------------+------------------+ | 0x18 | 8 | :ref:`CAICondition`\* | m_curCondition | +------------+-----------------------+-----------------------------------------+------------------+ | 0x20 | 8 | :ref:`CAIResponse`\* | m_curResponse | +------------+-----------------------+-----------------------------------------+------------------+ | 0x28 | 8 | :ref:`CString` | m_errors | +------------+-----------------------+-----------------------------------------+------------------+ | 0x30 | 24 | :ref:`CFile` | m_file | +------------+-----------------------+-----------------------------------------+------------------+ | 0x48 | 8 | :ref:`CString` | source | +------------+-----------------------+-----------------------------------------+------------------+ | 0x50 | 8 | :ref:`CString` | m_decompiledText | +------------+-----------------------+-----------------------------------------+------------------+ | 0x58 | 112 | :ref:`CAIIdList` | m_actions | +------------+-----------------------+-----------------------------------------+------------------+ | 0xC8 | 112 | :ref:`CAIIdList` | m_triggers | +------------+-----------------------+-----------------------------------------+------------------+ | 0x138 | 112 | :ref:`CAIIdList` | m_objects | +------------+-----------------------+-----------------------------------------+------------------+ ---- .. _CAITrigger: CAITrigger ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CAITrigger Class` +------------+----------------------+-------------------------------------+----------------+ | **Offset** | **Size (Total: 64)** | **Type** | **Field** | +------------+----------------------+-------------------------------------+----------------+ | 0x0 | 2 | __int16 | m_triggerID | +------------+----------------------+-------------------------------------+----------------+ | | 2 | | ```` | +------------+----------------------+-------------------------------------+----------------+ | 0x4 | 4 | int | m_specificID | +------------+----------------------+-------------------------------------+----------------+ | 0x8 | 24 | :ref:`CAIObjectType` | m_triggerCause | +------------+----------------------+-------------------------------------+----------------+ | 0x20 | 4 | int | m_flags | +------------+----------------------+-------------------------------------+----------------+ | 0x24 | 4 | int | m_specific2 | +------------+----------------------+-------------------------------------+----------------+ | 0x28 | 4 | int | m_specific3 | +------------+----------------------+-------------------------------------+----------------+ | | 4 | | ```` | +------------+----------------------+-------------------------------------+----------------+ | 0x30 | 8 | :ref:`CString` | m_string1 | +------------+----------------------+-------------------------------------+----------------+ | 0x38 | 8 | :ref:`CString` | m_string2 | +------------+----------------------+-------------------------------------+----------------+ ---- .. _CAIUtil: CAIUtil ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ See :ref:`CAIUtil Class` +------------+---------------------+----------+-----------+ | **Offset** | **Size (Total: 0)** | **Type** | **Field** | +------------+---------------------+----------+-----------+ ---- .. _CAOEEntry: CAOEEntry ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-----------------------------------------------+-----------+ | **Offset** | **Size (Total: 24)** | **Type** | **Field** | +------------+----------------------+-----------------------------------------------+-----------+ | 0x0 | 4 | :ref:`CAOEEntry::AOEType` | m_type | +------------+----------------------+-----------------------------------------------+-----------+ | 0x4 | 8 | :ref:`CPoint` | m_center | +------------+----------------------+-----------------------------------------------+-----------+ | 0xC | 8 | :ref:`CPoint` | m_radius | +------------+----------------------+-----------------------------------------------+-----------+ | 0x14 | 4 | unsigned int | m_color | +------------+----------------------+-----------------------------------------------+-----------+ ---- .. _CAOEEntry\:\:AOEType: CAOEEntry::AOEType ^^^^^^^^^^^^^^^^^^ +---------------+---------------------+ | **Name** | **Value (Size: 4)** | +---------------+---------------------+ | AOE_CIRCLE | 0 | +---------------+---------------------+ | AOE_CONE | 1 | +---------------+---------------------+ | AOE_RECTANGLE | 2 | +---------------+---------------------+ | AOE_LINE | 3 | +---------------+---------------------+ ---- .. _CAbilityData: CAbilityData ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------+-------------------------+ | **Offset** | **Size (Total: 64)** | **Type** | **Field** | +------------+----------------------+-------------------------+-------------------------+ | 0x0 | 8 | :ref:`CResRef` | m_icon | +------------+----------------------+-------------------------+-------------------------+ | 0x8 | 4 | unsigned int | m_name | +------------+----------------------+-------------------------+-------------------------+ | | 4 | | ```` | +------------+----------------------+-------------------------+-------------------------+ | 0x10 | 8 | :ref:`CString` | m_effect | +------------+----------------------+-------------------------+-------------------------+ | 0x18 | 4 | int | m_nMinLevel | +------------+----------------------+-------------------------+-------------------------+ | 0x1C | 4 | int | m_nMaxLevel | +------------+----------------------+-------------------------+-------------------------+ | 0x20 | 4 | int | m_nNumAllowed | +------------+----------------------+-------------------------+-------------------------+ | | 4 | | ```` | +------------+----------------------+-------------------------+-------------------------+ | 0x28 | 8 | :ref:`CString` | m_sPrereq | +------------+----------------------+-------------------------+-------------------------+ | 0x30 | 8 | :ref:`CString` | m_sExcludedBy | +------------+----------------------+-------------------------+-------------------------+ | 0x38 | 8 | :ref:`CString` | m_sAlignmentRestriction | +------------+----------------------+-------------------------+-------------------------+ ---- .. _CAbilityId: CAbilityId ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-------------------------+---------------+ | **Offset** | **Size (Total: 20)** | **Type** | **Field** | +------------+----------------------+-------------------------+---------------+ | 0x0 | 2 | __int16 | m_itemType | +------------+----------------------+-------------------------+---------------+ | 0x2 | 2 | __int16 | m_itemNum | +------------+----------------------+-------------------------+---------------+ | 0x4 | 2 | __int16 | m_abilityNum | +------------+----------------------+-------------------------+---------------+ | 0x6 | 8 | :ref:`CResRef` | m_res | +------------+----------------------+-------------------------+---------------+ | 0xE | 1 | unsigned __int8 | m_targetType | +------------+----------------------+-------------------------+---------------+ | 0xF | 1 | unsigned __int8 | m_targetCount | +------------+----------------------+-------------------------+---------------+ | 0x10 | 4 | unsigned int | m_toolTip | +------------+----------------------+-------------------------+---------------+ ---- .. _CApplyEffectList: CApplyEffectList ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+----------------------------------------------------------------------------------------------------+-------------+ | **Offset** | **Size (Total: 56)** | **Type** | **Field** | +------------+----------------------+----------------------------------------------------------------------------------------------------+-------------+ | 0x0 | 56 | :ref:`CTypedPtrList`\<:ref:`CPtrList`, :ref:`CGameEffect`\*> | baseclass_0 | +------------+----------------------+----------------------------------------------------------------------------------------------------+-------------+ ---- .. _CAreaFile: CAreaFile ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+----------------------------------------------------------------+-------------+ | **Offset** | **Size (Total: 16)** | **Type** | **Field** | +------------+----------------------+----------------------------------------------------------------+-------------+ | 0x0 | 16 | :ref:`CResHelper`\<:ref:`CResArea`,1010> | baseclass_0 | +------------+----------------------+----------------------------------------------------------------+-------------+ ---- .. _CAreaFileCharacterEntryPoint: CAreaFileCharacterEntryPoint ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+------------------------+-------------+ | **Offset** | **Size (Total: 104)** | **Type** | **Field** | +------------+-----------------------+------------------------+-------------+ | 0x0 | 32 | Array | m_entryName | +------------+-----------------------+------------------------+-------------+ | 0x20 | 2 | unsigned __int16 | m_startX | +------------+-----------------------+------------------------+-------------+ | 0x22 | 2 | unsigned __int16 | m_startY | +------------+-----------------------+------------------------+-------------+ | 0x24 | 4 | unsigned int | m_facing | +------------+-----------------------+------------------------+-------------+ | 0x28 | 64 | Array | m_notUsed | +------------+-----------------------+------------------------+-------------+ ---- .. _CAreaFileContainer: CAreaFileContainer ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------+---------------------------+ | **Offset** | **Size (Total: 192)** | **Type** | **Field** | +------------+-----------------------+--------------------------+---------------------------+ | 0x0 | 32 | Array | m_scriptName | +------------+-----------------------+--------------------------+---------------------------+ | 0x20 | 2 | unsigned __int16 | m_posX | +------------+-----------------------+--------------------------+---------------------------+ | 0x22 | 2 | unsigned __int16 | m_posY | +------------+-----------------------+--------------------------+---------------------------+ | 0x24 | 2 | unsigned __int16 | m_containerType | +------------+-----------------------+--------------------------+---------------------------+ | 0x26 | 2 | unsigned __int16 | m_lockDifficulty | +------------+-----------------------+--------------------------+---------------------------+ | 0x28 | 4 | unsigned int | m_dwFlags | +------------+-----------------------+--------------------------+---------------------------+ | 0x2C | 2 | unsigned __int16 | m_trapDetectionDifficulty | +------------+-----------------------+--------------------------+---------------------------+ | 0x2E | 2 | unsigned __int16 | m_trapRemovalDifficulty | +------------+-----------------------+--------------------------+---------------------------+ | 0x30 | 2 | unsigned __int16 | m_trapActivated | +------------+-----------------------+--------------------------+---------------------------+ | 0x32 | 2 | unsigned __int16 | m_trapDetected | +------------+-----------------------+--------------------------+---------------------------+ | 0x34 | 2 | unsigned __int16 | m_posXTrapOrigin | +------------+-----------------------+--------------------------+---------------------------+ | 0x36 | 2 | unsigned __int16 | m_posYTrapOrigin | +------------+-----------------------+--------------------------+---------------------------+ | 0x38 | 2 | unsigned __int16 | m_boundingRectLeft | +------------+-----------------------+--------------------------+---------------------------+ | 0x3A | 2 | unsigned __int16 | m_boundingRectTop | +------------+-----------------------+--------------------------+---------------------------+ | 0x3C | 2 | unsigned __int16 | m_boundingRectRight | +------------+-----------------------+--------------------------+---------------------------+ | 0x3E | 2 | unsigned __int16 | m_boundingRectBottom | +------------+-----------------------+--------------------------+---------------------------+ | 0x40 | 4 | unsigned int | m_startingItem | +------------+-----------------------+--------------------------+---------------------------+ | 0x44 | 4 | unsigned int | m_itemCount | +------------+-----------------------+--------------------------+---------------------------+ | 0x48 | 8 | Array | m_script | +------------+-----------------------+--------------------------+---------------------------+ | 0x50 | 4 | unsigned int | m_pickPointStart | +------------+-----------------------+--------------------------+---------------------------+ | 0x54 | 2 | unsigned __int16 | m_pickPointCount | +------------+-----------------------+--------------------------+---------------------------+ | 0x56 | 2 | unsigned __int16 | m_triggerRange | +------------+-----------------------+--------------------------+---------------------------+ | 0x58 | 32 | Array | m_ownedBy | +------------+-----------------------+--------------------------+---------------------------+ | 0x78 | 8 | Array | m_keyType | +------------+-----------------------+--------------------------+---------------------------+ | 0x80 | 4 | unsigned int | m_breakDifficulty | +------------+-----------------------+--------------------------+---------------------------+ | 0x84 | 4 | unsigned int | m_strNotPickable | +------------+-----------------------+--------------------------+---------------------------+ | 0x88 | 56 | Array | m_notUsed | +------------+-----------------------+--------------------------+---------------------------+ ---- .. _CAreaFileCreature: CAreaFileCreature ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------+--------------------------+ | **Offset** | **Size (Total: 272)** | **Type** | **Field** | +------------+-----------------------+--------------------------+--------------------------+ | 0x0 | 32 | Array | m_scriptName | +------------+-----------------------+--------------------------+--------------------------+ | 0x20 | 2 | unsigned __int16 | m_posX | +------------+-----------------------+--------------------------+--------------------------+ | 0x22 | 2 | unsigned __int16 | m_posY | +------------+-----------------------+--------------------------+--------------------------+ | 0x24 | 2 | unsigned __int16 | m_startingPosX | +------------+-----------------------+--------------------------+--------------------------+ | 0x26 | 2 | unsigned __int16 | m_startingPosY | +------------+-----------------------+--------------------------+--------------------------+ | 0x28 | 4 | unsigned int | m_dwFlags | +------------+-----------------------+--------------------------+--------------------------+ | 0x2C | 2 | unsigned __int16 | m_type | +------------+-----------------------+--------------------------+--------------------------+ | 0x2E | 1 | char | m_cFirstResSlot | +------------+-----------------------+--------------------------+--------------------------+ | 0x2F | 1 | Array | structureAlignment1 | +------------+-----------------------+--------------------------+--------------------------+ | 0x30 | 4 | unsigned int | m_animationType | +------------+-----------------------+--------------------------+--------------------------+ | 0x34 | 2 | unsigned __int16 | m_facing | +------------+-----------------------+--------------------------+--------------------------+ | 0x36 | 2 | Array | structureAlignment2 | +------------+-----------------------+--------------------------+--------------------------+ | 0x38 | 4 | unsigned int | m_expirationTime | +------------+-----------------------+--------------------------+--------------------------+ | 0x3C | 2 | unsigned __int16 | m_huntingRange | +------------+-----------------------+--------------------------+--------------------------+ | 0x3E | 2 | unsigned __int16 | m_followRange | +------------+-----------------------+--------------------------+--------------------------+ | 0x40 | 4 | unsigned int | m_timeOfDayVisible | +------------+-----------------------+--------------------------+--------------------------+ | 0x44 | 4 | unsigned int | m_numberTimesTalkedTo | +------------+-----------------------+--------------------------+--------------------------+ | 0x48 | 8 | Array | m_dialogOverride | +------------+-----------------------+--------------------------+--------------------------+ | 0x50 | 8 | Array | m_overrideScriptOverride | +------------+-----------------------+--------------------------+--------------------------+ | 0x58 | 8 | Array | m_generalScriptOverride | +------------+-----------------------+--------------------------+--------------------------+ | 0x60 | 8 | Array | m_classScriptOverride | +------------+-----------------------+--------------------------+--------------------------+ | 0x68 | 8 | Array | m_raceScriptOverride | +------------+-----------------------+--------------------------+--------------------------+ | 0x70 | 8 | Array | m_defaultScriptOverride | +------------+-----------------------+--------------------------+--------------------------+ | 0x78 | 8 | Array | m_specificScriptOverride | +------------+-----------------------+--------------------------+--------------------------+ | 0x80 | 8 | Array | m_creatureData | +------------+-----------------------+--------------------------+--------------------------+ | 0x88 | 4 | unsigned int | m_creatureOffset | +------------+-----------------------+--------------------------+--------------------------+ | 0x8C | 4 | unsigned int | m_creatureSize | +------------+-----------------------+--------------------------+--------------------------+ | 0x90 | 32 | Array | m_sName | +------------+-----------------------+--------------------------+--------------------------+ | 0xB0 | 96 | Array | m_notUsed | +------------+-----------------------+--------------------------+--------------------------+ ---- .. _CAreaFileDoorObject: CAreaFileDoorObject ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------+-----------------------------+ | **Offset** | **Size (Total: 200)** | **Type** | **Field** | +------------+-----------------------+--------------------------+-----------------------------+ | 0x0 | 32 | Array | m_scriptName | +------------+-----------------------+--------------------------+-----------------------------+ | 0x20 | 8 | Array | m_doorID | +------------+-----------------------+--------------------------+-----------------------------+ | 0x28 | 4 | unsigned int | m_dwFlags | +------------+-----------------------+--------------------------+-----------------------------+ | 0x2C | 4 | unsigned int | m_openSelectionPointStart | +------------+-----------------------+--------------------------+-----------------------------+ | 0x30 | 2 | unsigned __int16 | m_openSelectionPointCount | +------------+-----------------------+--------------------------+-----------------------------+ | 0x32 | 2 | unsigned __int16 | m_closedSelectionPointCount | +------------+-----------------------+--------------------------+-----------------------------+ | 0x34 | 4 | unsigned int | m_closedSelectionPointStart | +------------+-----------------------+--------------------------+-----------------------------+ | 0x38 | 2 | unsigned __int16 | m_openBoundingRectLeft | +------------+-----------------------+--------------------------+-----------------------------+ | 0x3A | 2 | unsigned __int16 | m_openBoundingRectTop | +------------+-----------------------+--------------------------+-----------------------------+ | 0x3C | 2 | unsigned __int16 | m_openBoundingRectRight | +------------+-----------------------+--------------------------+-----------------------------+ | 0x3E | 2 | unsigned __int16 | m_openBoundingRectBottom | +------------+-----------------------+--------------------------+-----------------------------+ | 0x40 | 2 | unsigned __int16 | m_closedBoundingRectLeft | +------------+-----------------------+--------------------------+-----------------------------+ | 0x42 | 2 | unsigned __int16 | m_closedBoundingRectTop | +------------+-----------------------+--------------------------+-----------------------------+ | 0x44 | 2 | unsigned __int16 | m_closedBoundingRectRight | +------------+-----------------------+--------------------------+-----------------------------+ | 0x46 | 2 | unsigned __int16 | m_closedBoundingRectBottom | +------------+-----------------------+--------------------------+-----------------------------+ | 0x48 | 4 | unsigned int | m_openSearchSquaresStart | +------------+-----------------------+--------------------------+-----------------------------+ | 0x4C | 2 | unsigned __int16 | m_openSearchSquaresCount | +------------+-----------------------+--------------------------+-----------------------------+ | 0x4E | 2 | unsigned __int16 | m_closedSearchSquaresCount | +------------+-----------------------+--------------------------+-----------------------------+ | 0x50 | 4 | unsigned int | m_closedSearchSquaresStart | +------------+-----------------------+--------------------------+-----------------------------+ | 0x54 | 2 | __int16 | m_hitPoints | +------------+-----------------------+--------------------------+-----------------------------+ | 0x56 | 2 | __int16 | m_armourClass | +------------+-----------------------+--------------------------+-----------------------------+ | 0x58 | 8 | Array | m_openSound | +------------+-----------------------+--------------------------+-----------------------------+ | 0x60 | 8 | Array | m_closeSound | +------------+-----------------------+--------------------------+-----------------------------+ | 0x68 | 4 | unsigned int | m_cursorType | +------------+-----------------------+--------------------------+-----------------------------+ | 0x6C | 2 | unsigned __int16 | m_trapDetectionDifficulty | +------------+-----------------------+--------------------------+-----------------------------+ | 0x6E | 2 | unsigned __int16 | m_trapDisarmingDifficulty | +------------+-----------------------+--------------------------+-----------------------------+ | 0x70 | 2 | unsigned __int16 | m_trapActivated | +------------+-----------------------+--------------------------+-----------------------------+ | 0x72 | 2 | unsigned __int16 | m_trapDetected | +------------+-----------------------+--------------------------+-----------------------------+ | 0x74 | 2 | unsigned __int16 | m_posXTrapOrigin | +------------+-----------------------+--------------------------+-----------------------------+ | 0x76 | 2 | unsigned __int16 | m_posYTrapOrigin | +------------+-----------------------+--------------------------+-----------------------------+ | 0x78 | 8 | Array | m_keyType | +------------+-----------------------+--------------------------+-----------------------------+ | 0x80 | 8 | Array | m_script | +------------+-----------------------+--------------------------+-----------------------------+ | 0x88 | 4 | unsigned int | m_detectionDifficulty | +------------+-----------------------+--------------------------+-----------------------------+ | 0x8C | 4 | unsigned int | m_lockDifficulty | +------------+-----------------------+--------------------------+-----------------------------+ | 0x90 | 2 | unsigned __int16 | m_posXWalkTo1 | +------------+-----------------------+--------------------------+-----------------------------+ | 0x92 | 2 | unsigned __int16 | m_posYWalkTo1 | +------------+-----------------------+--------------------------+-----------------------------+ | 0x94 | 2 | unsigned __int16 | m_posXWalkTo2 | +------------+-----------------------+--------------------------+-----------------------------+ | 0x96 | 2 | unsigned __int16 | m_posYWalkTo2 | +------------+-----------------------+--------------------------+-----------------------------+ | 0x98 | 4 | unsigned int | m_strNotPickable | +------------+-----------------------+--------------------------+-----------------------------+ | 0x9C | 32 | Array | m_triggerName | +------------+-----------------------+--------------------------+-----------------------------+ | 0xBC | 12 | Array | m_notUsed | +------------+-----------------------+--------------------------+-----------------------------+ ---- .. _CAreaFileHeader: CAreaFileHeader ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------------------+------------------------+ | **Offset** | **Size (Total: 76)** | **Type** | **Field** | +------------+----------------------+--------------------------+------------------------+ | 0x0 | 8 | Array | m_areaName | +------------+----------------------+--------------------------+------------------------+ | 0x8 | 4 | unsigned int | m_lastSaved | +------------+----------------------+--------------------------+------------------------+ | 0xC | 4 | unsigned int | m_flags | +------------+----------------------+--------------------------+------------------------+ | 0x10 | 8 | Array | m_areaEdgeNorth | +------------+----------------------+--------------------------+------------------------+ | 0x18 | 4 | unsigned int | m_flagsEdgeNorth | +------------+----------------------+--------------------------+------------------------+ | 0x1C | 8 | Array | m_areaEdgeEast | +------------+----------------------+--------------------------+------------------------+ | 0x24 | 4 | unsigned int | m_flagsEdgeEast | +------------+----------------------+--------------------------+------------------------+ | 0x28 | 8 | Array | m_areaEdgeSouth | +------------+----------------------+--------------------------+------------------------+ | 0x30 | 4 | unsigned int | m_flagsEdgeSouth | +------------+----------------------+--------------------------+------------------------+ | 0x34 | 8 | Array | m_areaEdgeWest | +------------+----------------------+--------------------------+------------------------+ | 0x3C | 4 | unsigned int | m_flagsEdgeWest | +------------+----------------------+--------------------------+------------------------+ | 0x40 | 2 | unsigned __int16 | m_areaType | +------------+----------------------+--------------------------+------------------------+ | 0x42 | 2 | unsigned __int16 | m_rainProbability | +------------+----------------------+--------------------------+------------------------+ | 0x44 | 2 | unsigned __int16 | m_snowProbability | +------------+----------------------+--------------------------+------------------------+ | 0x46 | 2 | unsigned __int16 | m_fogProbability | +------------+----------------------+--------------------------+------------------------+ | 0x48 | 2 | unsigned __int16 | m_lightningProbability | +------------+----------------------+--------------------------+------------------------+ | 0x4A | 1 | unsigned __int8 | m_waterAlpha | +------------+----------------------+--------------------------+------------------------+ | 0x4B | 1 | unsigned __int8 | m_unused | +------------+----------------------+--------------------------+------------------------+ ---- .. _CAreaFileOffsets: CAreaFileOffsets ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------+-----------------------------------------+ | **Offset** | **Size (Total: 200)** | **Type** | **Field** | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x0 | 4 | unsigned int | m_creatureTableOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x4 | 2 | unsigned __int16 | m_creatureTableCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x6 | 2 | unsigned __int16 | m_triggerObjectListCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x8 | 4 | unsigned int | m_triggerObjectListOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0xC | 4 | unsigned int | m_randomMonsterSpawningPointTableOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x10 | 4 | unsigned int | m_randomMonsterSpawningPointTableCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x14 | 4 | unsigned int | m_characterEntryPointTableOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x18 | 4 | unsigned int | m_characterEntryPointTableCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x1C | 4 | unsigned int | m_containerListOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x20 | 2 | unsigned __int16 | m_containerListCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x22 | 2 | unsigned __int16 | m_itemObjectsCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x24 | 4 | unsigned int | m_itemObjectsOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x28 | 4 | unsigned int | m_pointsOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x2C | 2 | unsigned __int16 | m_pointsCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x2E | 2 | unsigned __int16 | m_soundObjectCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x30 | 4 | unsigned int | m_soundObjectOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x34 | 4 | unsigned int | m_areaScriptVariablesOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x38 | 2 | unsigned __int16 | m_areaScriptVariablesCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x3A | 2 | unsigned __int16 | m_tiledObjectFlagsCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x3C | 4 | unsigned int | m_tiledObjectFlagsOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x40 | 8 | Array | m_script | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x48 | 4 | unsigned int | m_visibilityMapCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x4C | 4 | unsigned int | m_visibilityMapOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x50 | 4 | unsigned int | m_doorObjectListCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x54 | 4 | unsigned int | m_doorObjectListOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x58 | 4 | unsigned int | m_staticObjectListCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x5C | 4 | unsigned int | m_staticObjectListOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x60 | 4 | unsigned int | m_tiledObjectListCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x64 | 4 | unsigned int | m_tiledObjectListOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x68 | 4 | unsigned int | m_areaSoundsAndMusicOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x6C | 4 | unsigned int | m_restingEncounterOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x70 | 4 | unsigned int | m_userMapNotesOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x74 | 4 | unsigned int | m_userMapNotesCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x78 | 4 | unsigned int | m_projectileTableOffset | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x7C | 4 | unsigned int | m_projectileTableCount | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x80 | 8 | Array | m_restMovieDay | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x88 | 8 | Array | m_restMovieNight | +------------+-----------------------+--------------------------+-----------------------------------------+ | 0x90 | 56 | Array | m_notUsed | +------------+-----------------------+--------------------------+-----------------------------------------+ ---- .. _CAreaFileProjectileObject: CAreaFileProjectileObject ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------------------+--------------------+ | **Offset** | **Size (Total: 28)** | **Type** | **Field** | +------------+----------------------+--------------------------+--------------------+ | 0x0 | 8 | Array | m_resref | +------------+----------------------+--------------------------+--------------------+ | 0x8 | 4 | unsigned int | m_effectListOffset | +------------+----------------------+--------------------------+--------------------+ | 0xC | 2 | unsigned __int16 | m_effectListCount | +------------+----------------------+--------------------------+--------------------+ | 0xE | 2 | unsigned __int16 | m_projectileID | +------------+----------------------+--------------------------+--------------------+ | 0x10 | 2 | __int16 | m_nDelayCount | +------------+----------------------+--------------------------+--------------------+ | 0x12 | 2 | __int16 | m_nRepetitionCount | +------------+----------------------+--------------------------+--------------------+ | 0x14 | 2 | unsigned __int16 | m_posX | +------------+----------------------+--------------------------+--------------------+ | 0x16 | 2 | unsigned __int16 | m_posY | +------------+----------------------+--------------------------+--------------------+ | 0x18 | 2 | unsigned __int16 | m_posZ | +------------+----------------------+--------------------------+--------------------+ | 0x1A | 1 | unsigned __int8 | m_targetType | +------------+----------------------+--------------------------+--------------------+ | 0x1B | 1 | char | m_portraitNum | +------------+----------------------+--------------------------+--------------------+ ---- .. _CAreaFileRandomMonsterSpawningPoint: CAreaFileRandomMonsterSpawningPoint ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+------------------------------------+---------------------+ | **Offset** | **Size (Total: 200)** | **Type** | **Field** | +------------+-----------------------+------------------------------------+---------------------+ | 0x0 | 32 | Array | m_scriptName | +------------+-----------------------+------------------------------------+---------------------+ | 0x20 | 2 | unsigned __int16 | m_posX | +------------+-----------------------+------------------------------------+---------------------+ | 0x22 | 2 | unsigned __int16 | m_posY | +------------+-----------------------+------------------------------------+---------------------+ | 0x24 | 80 | Array,10> | m_randomCreature | +------------+-----------------------+------------------------------------+---------------------+ | 0x74 | 2 | unsigned __int16 | m_randomCreatureNum | +------------+-----------------------+------------------------------------+---------------------+ | 0x76 | 2 | unsigned __int16 | m_difficulty | +------------+-----------------------+------------------------------------+---------------------+ | 0x78 | 2 | unsigned __int16 | m_spawningRate | +------------+-----------------------+------------------------------------+---------------------+ | 0x7A | 2 | unsigned __int16 | m_wFlags | +------------+-----------------------+------------------------------------+---------------------+ | 0x7C | 4 | unsigned int | m_lifeSpan | +------------+-----------------------+------------------------------------+---------------------+ | 0x80 | 2 | unsigned __int16 | m_huntingRange | +------------+-----------------------+------------------------------------+---------------------+ | 0x82 | 2 | unsigned __int16 | m_followRange | +------------+-----------------------+------------------------------------+---------------------+ | 0x84 | 2 | unsigned __int16 | m_maxTypeNum | +------------+-----------------------+------------------------------------+---------------------+ | 0x86 | 2 | unsigned __int16 | m_activated | +------------+-----------------------+------------------------------------+---------------------+ | 0x88 | 4 | unsigned int | m_timeOfDayVisible | +------------+-----------------------+------------------------------------+---------------------+ | 0x8C | 2 | unsigned __int16 | m_probDay | +------------+-----------------------+------------------------------------+---------------------+ | 0x8E | 2 | unsigned __int16 | m_probNight | +------------+-----------------------+------------------------------------+---------------------+ | 0x90 | 4 | unsigned int | m_frequency | +------------+-----------------------+------------------------------------+---------------------+ | 0x94 | 4 | unsigned int | m_countdown | +------------+-----------------------+------------------------------------+---------------------+ | 0x98 | 10 | Array | m_weights | +------------+-----------------------+------------------------------------+---------------------+ | 0xA2 | 38 | Array | m_notUsed | +------------+-----------------------+------------------------------------+---------------------+ ---- .. _CAreaFileRestEncounter: CAreaFileRestEncounter ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+------------------------------------+------------------------+ | **Offset** | **Size (Total: 228)** | **Type** | **Field** | +------------+-----------------------+------------------------------------+------------------------+ | 0x0 | 32 | Array | m_scriptName | +------------+-----------------------+------------------------------------+------------------------+ | 0x20 | 40 | Array | m_randomCreatureString | +------------+-----------------------+------------------------------------+------------------------+ | 0x48 | 80 | Array,10> | m_randomCreature | +------------+-----------------------+------------------------------------+------------------------+ | 0x98 | 2 | unsigned __int16 | m_randomCreatureNum | +------------+-----------------------+------------------------------------+------------------------+ | 0x9A | 2 | unsigned __int16 | m_difficulty | +------------+-----------------------+------------------------------------+------------------------+ | 0x9C | 4 | unsigned int | m_lifeSpan | +------------+-----------------------+------------------------------------+------------------------+ | 0xA0 | 2 | unsigned __int16 | m_huntingRange | +------------+-----------------------+------------------------------------+------------------------+ | 0xA2 | 2 | unsigned __int16 | m_followRange | +------------+-----------------------+------------------------------------+------------------------+ | 0xA4 | 2 | unsigned __int16 | m_maxTypeNum | +------------+-----------------------+------------------------------------+------------------------+ | 0xA6 | 2 | unsigned __int16 | m_activated | +------------+-----------------------+------------------------------------+------------------------+ | 0xA8 | 2 | unsigned __int16 | m_probDay | +------------+-----------------------+------------------------------------+------------------------+ | 0xAA | 2 | unsigned __int16 | m_probNight | +------------+-----------------------+------------------------------------+------------------------+ | 0xAC | 2 | unsigned __int16 | m_wFlags | +------------+-----------------------+------------------------------------+------------------------+ | 0xAE | 10 | Array | m_weights | +------------+-----------------------+------------------------------------+------------------------+ | 0xB8 | 44 | Array | m_notUsed | +------------+-----------------------+------------------------------------+------------------------+ ---- .. _CAreaFileSoundObject: CAreaFileSoundObject ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+------------------------------------+---------------------+ | **Offset** | **Size (Total: 212)** | **Type** | **Field** | +------------+-----------------------+------------------------------------+---------------------+ | 0x0 | 32 | Array | m_scriptName | +------------+-----------------------+------------------------------------+---------------------+ | 0x20 | 2 | unsigned __int16 | m_posX | +------------+-----------------------+------------------------------------+---------------------+ | 0x22 | 2 | unsigned __int16 | m_posY | +------------+-----------------------+------------------------------------+---------------------+ | 0x24 | 2 | unsigned __int16 | m_range | +------------+-----------------------+------------------------------------+---------------------+ | 0x26 | 2 | Array | structureAlignment1 | +------------+-----------------------+------------------------------------+---------------------+ | 0x28 | 4 | unsigned int | m_pitchVariance | +------------+-----------------------+------------------------------------+---------------------+ | 0x2C | 2 | unsigned __int16 | m_volumeVariance | +------------+-----------------------+------------------------------------+---------------------+ | 0x2E | 2 | unsigned __int16 | m_volume | +------------+-----------------------+------------------------------------+---------------------+ | 0x30 | 80 | Array,10> | m_soundObject | +------------+-----------------------+------------------------------------+---------------------+ | 0x80 | 2 | unsigned __int16 | m_soundObjectNum | +------------+-----------------------+------------------------------------+---------------------+ | 0x82 | 2 | Array | structureAlignment2 | +------------+-----------------------+------------------------------------+---------------------+ | 0x84 | 4 | unsigned int | m_period | +------------+-----------------------+------------------------------------+---------------------+ | 0x88 | 4 | unsigned int | m_periodVariance | +------------+-----------------------+------------------------------------+---------------------+ | 0x8C | 4 | unsigned int | m_timeOfDayActive | +------------+-----------------------+------------------------------------+---------------------+ | 0x90 | 4 | unsigned int | m_dwFlags | +------------+-----------------------+------------------------------------+---------------------+ | 0x94 | 64 | Array | m_notUsed | +------------+-----------------------+------------------------------------+---------------------+ ---- .. _CAreaFileStaticObject: CAreaFileStaticObject ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+--------------------------+--------------------+ | **Offset** | **Size (Total: 76)** | **Type** | **Field** | +------------+----------------------+--------------------------+--------------------+ | 0x0 | 32 | Array | m_scriptName | +------------+----------------------+--------------------------+--------------------+ | 0x20 | 2 | unsigned __int16 | m_posX | +------------+----------------------+--------------------------+--------------------+ | 0x22 | 2 | unsigned __int16 | m_posY | +------------+----------------------+--------------------------+--------------------+ | 0x24 | 4 | unsigned int | m_timeOfDayVisible | +------------+----------------------+--------------------------+--------------------+ | 0x28 | 8 | Array | m_resref | +------------+----------------------+--------------------------+--------------------+ | 0x30 | 4 | unsigned int | m_nSequence | +------------+----------------------+--------------------------+--------------------+ | 0x34 | 4 | unsigned int | m_dwFlags | +------------+----------------------+--------------------------+--------------------+ | 0x38 | 2 | __int16 | m_height | +------------+----------------------+--------------------------+--------------------+ | 0x3A | 2 | unsigned __int16 | m_translucency | +------------+----------------------+--------------------------+--------------------+ | 0x3C | 2 | unsigned __int16 | m_startFrameRange | +------------+----------------------+--------------------------+--------------------+ | 0x3E | 1 | unsigned __int8 | m_probability | +------------+----------------------+--------------------------+--------------------+ | 0x3F | 1 | unsigned __int8 | m_period | +------------+----------------------+--------------------------+--------------------+ | 0x40 | 8 | Array | m_paletteResref | +------------+----------------------+--------------------------+--------------------+ | 0x48 | 2 | unsigned __int16 | m_sizeX | +------------+----------------------+--------------------------+--------------------+ | 0x4A | 2 | unsigned __int16 | m_sizeY | +------------+----------------------+--------------------------+--------------------+ ---- .. _CAreaFileTiledObject: CAreaFileTiledObject ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------+-------------------------------+ | **Offset** | **Size (Total: 104)** | **Type** | **Field** | +------------+-----------------------+--------------------------+-------------------------------+ | 0x0 | 32 | Array | m_scriptName | +------------+-----------------------+--------------------------+-------------------------------+ | 0x20 | 8 | Array | m_tileID | +------------+-----------------------+--------------------------+-------------------------------+ | 0x28 | 4 | unsigned int | m_dwFlags | +------------+-----------------------+--------------------------+-------------------------------+ | 0x2C | 4 | unsigned int | m_primarySearchSquaresStart | +------------+-----------------------+--------------------------+-------------------------------+ | 0x30 | 2 | unsigned __int16 | m_primarySearchSquaresCount | +------------+-----------------------+--------------------------+-------------------------------+ | 0x32 | 2 | unsigned __int16 | m_secondarySearchSquaresCount | +------------+-----------------------+--------------------------+-------------------------------+ | 0x34 | 4 | unsigned int | m_secondarySearchSquaresStart | +------------+-----------------------+--------------------------+-------------------------------+ | 0x38 | 48 | Array | m_notUsed | +------------+-----------------------+--------------------------+-------------------------------+ ---- .. _CAreaFileTriggerObject: CAreaFileTriggerObject ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------+---------------------------+ | **Offset** | **Size (Total: 196)** | **Type** | **Field** | +------------+-----------------------+--------------------------+---------------------------+ | 0x0 | 32 | Array | m_scriptName | +------------+-----------------------+--------------------------+---------------------------+ | 0x20 | 2 | unsigned __int16 | m_triggerType | +------------+-----------------------+--------------------------+---------------------------+ | 0x22 | 2 | unsigned __int16 | m_boundingRectLeft | +------------+-----------------------+--------------------------+---------------------------+ | 0x24 | 2 | unsigned __int16 | m_boundingRectTop | +------------+-----------------------+--------------------------+---------------------------+ | 0x26 | 2 | unsigned __int16 | m_boundingRectRight | +------------+-----------------------+--------------------------+---------------------------+ | 0x28 | 2 | unsigned __int16 | m_boundingRectBottom | +------------+-----------------------+--------------------------+---------------------------+ | 0x2A | 2 | unsigned __int16 | m_pickPointCount | +------------+-----------------------+--------------------------+---------------------------+ | 0x2C | 4 | unsigned int | m_pickPointStart | +------------+-----------------------+--------------------------+---------------------------+ | 0x30 | 4 | unsigned int | m_triggerValue | +------------+-----------------------+--------------------------+---------------------------+ | 0x34 | 4 | unsigned int | m_cursorType | +------------+-----------------------+--------------------------+---------------------------+ | 0x38 | 8 | Array | m_newArea | +------------+-----------------------+--------------------------+---------------------------+ | 0x40 | 32 | Array | m_newEntryPoint | +------------+-----------------------+--------------------------+---------------------------+ | 0x60 | 4 | unsigned int | m_dwFlags | +------------+-----------------------+--------------------------+---------------------------+ | 0x64 | 4 | unsigned int | m_description | +------------+-----------------------+--------------------------+---------------------------+ | 0x68 | 2 | unsigned __int16 | m_trapDetectionDifficulty | +------------+-----------------------+--------------------------+---------------------------+ | 0x6A | 2 | unsigned __int16 | m_trapDisarmingDifficulty | +------------+-----------------------+--------------------------+---------------------------+ | 0x6C | 2 | unsigned __int16 | m_trapActivated | +------------+-----------------------+--------------------------+---------------------------+ | 0x6E | 2 | unsigned __int16 | m_trapDetected | +------------+-----------------------+--------------------------+---------------------------+ | 0x70 | 2 | unsigned __int16 | m_posXTrapOrigin | +------------+-----------------------+--------------------------+---------------------------+ | 0x72 | 2 | unsigned __int16 | m_posYTrapOrigin | +------------+-----------------------+--------------------------+---------------------------+ | 0x74 | 8 | Array | m_keyType | +------------+-----------------------+--------------------------+---------------------------+ | 0x7C | 8 | Array | m_script | +------------+-----------------------+--------------------------+---------------------------+ | 0x84 | 2 | unsigned __int16 | m_transitionWalkToX | +------------+-----------------------+--------------------------+---------------------------+ | 0x86 | 2 | unsigned __int16 | m_transitionWalkToY | +------------+-----------------------+--------------------------+---------------------------+ | 0x88 | 60 | Array | m_notUsed | +------------+-----------------------+--------------------------+---------------------------+ ---- .. _CAreaPoint: CAreaPoint ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+---------------------+------------------+-----------+ | **Offset** | **Size (Total: 4)** | **Type** | **Field** | +------------+---------------------+------------------+-----------+ | 0x0 | 2 | unsigned __int16 | m_xPos | +------------+---------------------+------------------+-----------+ | 0x2 | 2 | unsigned __int16 | m_yPos | +------------+---------------------+------------------+-----------+ ---- .. _CAreaSoundsAndMusic: CAreaSoundsAndMusic ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+-----------------------+--------------------------+------------------------+ | **Offset** | **Size (Total: 144)** | **Type** | **Field** | +------------+-----------------------+--------------------------+------------------------+ | 0x0 | 4 | unsigned int | m_dayMusic | +------------+-----------------------+--------------------------+------------------------+ | 0x4 | 4 | unsigned int | m_nightMusic | +------------+-----------------------+--------------------------+------------------------+ | 0x8 | 4 | unsigned int | m_battleWinningMusic | +------------+-----------------------+--------------------------+------------------------+ | 0xC | 4 | unsigned int | m_battleStandOffMusic | +------------+-----------------------+--------------------------+------------------------+ | 0x10 | 4 | unsigned int | m_battleLosingMusic | +------------+-----------------------+--------------------------+------------------------+ | 0x14 | 4 | unsigned int | m_alt1Music0 | +------------+-----------------------+--------------------------+------------------------+ | 0x18 | 4 | unsigned int | m_alt1Music1 | +------------+-----------------------+--------------------------+------------------------+ | 0x1C | 4 | unsigned int | m_alt1Music2 | +------------+-----------------------+--------------------------+------------------------+ | 0x20 | 4 | unsigned int | m_alt1Music3 | +------------+-----------------------+--------------------------+------------------------+ | 0x24 | 4 | unsigned int | m_alt1Music4 | +------------+-----------------------+--------------------------+------------------------+ | 0x28 | 8 | Array | m_dayAmbient | +------------+-----------------------+--------------------------+------------------------+ | 0x30 | 8 | Array | m_dayAmbientExtended | +------------+-----------------------+--------------------------+------------------------+ | 0x38 | 4 | unsigned int | m_dayAmbientVolume | +------------+-----------------------+--------------------------+------------------------+ | 0x3C | 8 | Array | m_nightAmbient | +------------+-----------------------+--------------------------+------------------------+ | 0x44 | 8 | Array | m_nightAmbientExtended | +------------+-----------------------+--------------------------+------------------------+ | 0x4C | 4 | unsigned int | m_nightAmbientVolume | +------------+-----------------------+--------------------------+------------------------+ | 0x50 | 64 | Array | m_notUsed | +------------+-----------------------+--------------------------+------------------------+ ---- .. _CAreaUserNote: CAreaUserNote ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+-----------------------+-----------+ | **Offset** | **Size (Total: 52)** | **Type** | **Field** | +------------+----------------------+-----------------------+-----------+ | 0x0 | 2 | unsigned __int16 | m_startX | +------------+----------------------+-----------------------+-----------+ | 0x2 | 2 | unsigned __int16 | m_startY | +------------+----------------------+-----------------------+-----------+ | 0x4 | 4 | unsigned int | m_note | +------------+----------------------+-----------------------+-----------+ | 0x8 | 4 | unsigned int | m_dwflags | +------------+----------------------+-----------------------+-----------+ | 0xC | 4 | unsigned int | m_id | +------------+----------------------+-----------------------+-----------+ | 0x10 | 36 | Array | m_notUsed | +------------+----------------------+-----------------------+-----------+ ---- .. _CAreaVariable: CAreaVariable ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------------------+------------------+---------------+ | **Offset** | **Size (Total: 84)** | **Type** | **Field** | +------------+----------------------+------------------+---------------+ | 0x0 | 32 | Array | m_name | +------------+----------------------+------------------+---------------+ | 0x20 | 2 | unsigned __int16 | m_type | +------------+----------------------+------------------+---------------+ | 0x22 | 2 | unsigned __int16 | m_resRefType | +------------+----------------------+------------------+---------------+ | 0x24 | 4 | unsigned int | m_dWValue | +------------+----------------------+------------------+---------------+ | 0x28 | 4 | int | m_intValue | +------------+----------------------+------------------+---------------+ | 0x2C | 8 | long double | m_floatValue | +------------+----------------------+------------------+---------------+ | 0x34 | 32 | Array | m_stringValue | +------------+----------------------+------------------+---------------+ ---- .. _CArray: CArray ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. note:: CArray is a generic definition for all the CArray type structures. Each of them has a m_pData field that points to a specific structure. The names of these other CArray structures have been created for convenience, by adding the name of the structure that they point to to the end of the 'CArray'. The actual definitions as they are seen by the game engine (and from extracting pdb symbol information) are noted for each of them. +------------+----------------------+-------------------------+---------------+ | **Offset** | **Size (Total: 32)** | **Type** | **Field** | +------------+----------------------+-------------------------+---------------+ | 0x0 | 8 | :ref:`CObject` | baseclass_0 | +------------+----------------------+-------------------------+---------------+ | 0x8 | 8 | TYPE* | m_pData | +------------+----------------------+-------------------------+---------------+ | 0x10 | 4 | int | m_nSize | +------------+----------------------+-------------------------+---------------+ | 0x14 | 4 | int | m_nMaxSize | +------------+----------------------+-------------------------+---------------+ | 0x18 | 4 | int | m_nGrowBy | +------------+----------------------+-------------------------+---------------+ | | 4 | | ```` | +------------+----------------------+-------------------------+---------------+